package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.OrderRecordCreateCmd;
import com.baoyouqun.domain.Query.OrderRecordQuery;
import com.baoyouqun.domain.UpdateCmd.OrderRecordUpdateCmd;
import com.baoyouqun.domain.VO.OrderRecordVO;
import com.baoyouqun.entity.OrderRecord;

import java.util.List;

public interface OrderRecordService extends IService

        <OrderRecord> {

    /**
     * 新增并返回实体
     */
    SingleResponse<OrderRecordVO> create(OrderRecordCreateCmd cmd);

    Response update(OrderRecordUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    OrderRecordVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<OrderRecordVO> pageVo(OrderRecordQuery query);

    List<OrderRecordVO> selectByUserId(String loginIdAsString);

    boolean updateInvoiceStatus(String orderId, Byte status);
}